const Router = require("@koa/router");
const router = new Router({ prefix: "/data" }); // 路由前缀
const dataController = require("../controllers/data");

// 发布表单提交
router.post("/publish", dataController.publish);
// 查询所有帖子
router.post("/queryList", dataController.queryList);

module.exports = router;
